package SistemaDeArchivos;

import java.util.Comparator;

public class FSComparator implements Comparator<FyleSystem> {

	@Override
	public int compare(FyleSystem file1, FyleSystem file2) {

		if (file1.lastModified().lastModification()
				.isBefore(file2.lastModification())) {
			return -1;
		}
		if (file2.lastModified().lastModification()
				.isBefore(file1.lastModification())) {
			return 1;
		}
		return 0;
	}

}
